package service

import (
	pb "gitee.com/shuokeyun/merchant-service/api/v1"
	"gitee.com/shuokeyun/merchant-service/internal/domain"
	"github.com/jinzhu/copier"
)

func merchantDoConvReply(do *domain.Merchant) *pb.GetMerchantReply {
	if do == nil {
		return nil
	}
	to := &pb.GetMerchantReply{}
	copier.Copy(to, do)
	return to
}
